package com.huping.service;

import com.alibaba.fastjson.JSONObject;
import com.huping.pojo.Grade;
import com.huping.pojo.Homework;
import com.huping.pojo.PageBean;
import com.huping.pojo.Result;
import io.jsonwebtoken.Claims;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface HomeworkService {
    public Result teacherCreate(Homework homework, Claims claims);

    public Result details(JSONObject param);

    public PageBean homeworkSelect(Claims claims, JSONObject param);


    public Result teacherAnnex(Integer homeworkId, List<MultipartFile> files);

    public Result teacherUpdate(Homework homework);

    public Result submitDetails(Integer homeworkId, Claims claims);

    public Result studentUpdate(Grade grade);

    public Result studentAnnex(Integer gradeId, List<MultipartFile> files);

    public Result teacherSelectAllCourse(String userid);

    public Result teacherAnnexDelete(Integer homeworkId, String url);

    public Result studentAnnexDelete(Integer gradeId, String url);

    public Result checkSimilarity(Integer homeworkId);
    public  Result teacherGetAllHomework(String userid,JSONObject param);
}
